editorconfig.el: Miscellaneous minor changes
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Jun 2024 14:51:48 +0000 (10:51 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Jun 2024 20:18:58 +0000 (16:18 -0400)
commit57b2439cb566599c570826b141d31cdf52478f9d
treeae12e601dff48ed196b5542e4f69084f98359a7f
parent0b3e688b230607b0c8571b604621b34860ebccea
editorconfig.el: Miscellaneous minor changes

* lisp/editorconfig.el: Drop redundant `require`s of pcase, nadvice, rx.
Remove unnecessary (and incorrect) `defvar`s in `eval-when-compile`.
(find-library-name, lm-version): Move declarations to right after
the corresponding `require` so we have a reason to believe they're defined.
(editorconfig-version): Use `package-get-version` when available.

* lisp/editorconfig-core.el (editorconfig-core-get-nearest-editorconfig)
(editorconfig-core-get-properties, editorconfig-core-get-properties-hash):
* lisp/editorconfig-fnmatch.el (editorconfig-fnmatch-p):
Remove autoload cookies.
lisp/editorconfig-core.el
lisp/editorconfig-fnmatch.el
lisp/editorconfig.el